﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ts_deptMetadata))]//使用ts_deptMetadata对ts_dept进行数据验证
    public partial class ts_dept : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class ts_deptMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "Id", Order = 1)]
			public object Id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "领料部门", Order = 2)]
			[StringLength(20, ErrorMessage = "长度不可超过20")]
			public object c_dept { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "序号", Order = 3)]
			[StringLength(10, ErrorMessage = "长度不可超过10")]
			public object c_id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "是否厨房领料", Order = 4)]
			[Range(0,2147483646, ErrorMessage="数值超出范围")]
			public int? i_kit { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "厨房号", Order = 5)]
			[StringLength(30, ErrorMessage = "长度不可超过30")]
			public object c_kit { get; set; }


    }


}

